#ps1
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module -Name PolicyFileEditor  -Force 
Set-PolicyFileEntry -Path "C:\Windows\System32\GroupPolicy\Machine\Registry.pol" -Key "Software\Policies\Microsoft\Windows NT\Terminal Services" -ValueName "MaxDisconnectionTime" -Data 0 -Type DWORD 
Set-PolicyFileEntry -Path "C:\Windows\System32\GroupPolicy\Machine\Registry.pol" -Key "Software\Policies\Microsoft\Windows NT\Terminal Services" -ValueName "MaxIdleTime" -Data 0 -Type DWORD 

$Path = "C:\Users\Administrator\Downloads\zhanfu.zip";
$Installer = "zhanfubrowser.exe";
$Path1 = "C:\Users\Administrator\Downloads\zhanfu";
Invoke-WebRequest "http://downloads.zhanfubrowser.com/zhanfubrowser.zip" -OutFile $Path;
Expand-Archive -Path $Path -DestinationPath $Path1;
Start-Process -FilePath $Path1\$Installer -Args "/silent /install" -Verb RunAs -Wait;
Remove-Item $Path1\$Installer